package com.liuya.db.sql;

import com.liuya.safe.model.SafeUser;

import java.util.Map;

/**
 * 值
 */
public interface Value extends Operand, Parameter, java.io.Serializable  {
	/**
	 * Indicate this value is for a LIKE operator or not?
	 * 
	 * @param behind
	 *            if true, for LIKE operator
	 */
	public void setBehindLike(boolean behind);

	/**
	 * Indicate this value is for a LIKE operator or not?
	 * 
	 * @return return true if it's for LIKE operator
	 */
	public boolean isBehindLike();

	public abstract Object getValue(SafeUser user, Map context);
}
